﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using soho.Library;

public partial class LienHe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!Page.IsPostBack)
        {
            FillProductType();

            if (Request["pType"] != null)
            {
                ddlProductType.SelectedValue = Request["pType"].ToString();
            }
        }
    }

    void FillProductType()
    {
        ddlProductType.Items.Clear();
        ddlProductType.Items.Add(new ListItem("Economy", ((int)sohoUtility.ProductType.Economy).ToString()));
        ddlProductType.Items.Add(new ListItem("Business", ((int)sohoUtility.ProductType.Business).ToString()));
        ddlProductType.Items.Add(new ListItem("Premium", ((int)sohoUtility.ProductType.Premium).ToString()));

        ddlProductType.DataBind();
    }
}